Diffusion Model Representation Learning