Title: Compendium on Electromagnetic Analysis - from Electrostatics to Photonics