what is the expression intensity to explain diffraction pattern and also give equation for intensity of em wave and mechanical wave