Uncertainty relation and diffraction by a slit