Undulatory theory of light