Principles of Optics: Rigorous diffraction theory