Finite element analysis of a time harmonic Maxwell problem with an impedance boundary condition