Introduction to electromagnetic fields and waves