how long does it take for topical flea medicine to work