Reflection and Refraction of Electromagnetic Waves