Silicon Photonics Electromagnetic theory