Finite element approximation of heterogeneous time-harmonic Maxwell equations via a domain decomposition approach