Electromagnetic field theory