An hp‐adaptive finite element method for scattering problems in computational electromagnetics