Notes on electromagnetic radiation