Mirror Diffusion Models for Constrained and Watermarked Generation