Castration and sterilization of animals