Electromagnetic theory of light