Electromagnetism Theory and Analysis for Near-Field Nano-Optics