A domain decomposition approach for heterogeneous time-harmonic Maxwell equations