Introduction to electromagnetism