Fundamentals of waves, optics, and modern physics