Diffusion Generative Models Meet Compressed Sensing, with Applications to Image Data and Financial Time Series