Introduction to electromagnetic waves