Introduction to modern optics