The electromagnetic spectrum explained