how long does it take for flea medicine to work on cats