Diffusion-based supervised learning of generative models for efficient sampling of multimodal distributions