The Surprising Effectiveness of Diffusion Models for Optical Flow and Monocular Depth Estimation