Jailbreak Attacks and Defenses against Multimodal Generative Models: A Survey