How can vaccination prevent rabies in dogs?