A finite element -- boundary integral method for electromagnetic scattering