Adversarial Example Does Good: Preventing Painting Imitation from Diffusion Models via Adversarial Examples