Electromagnetic wave theory