Principles of Optics for Engineers: Diffraction and Modal Analysis