Smoking bad for pets, study shows