Heterogeneous time-harmonic Maxwell equations in bidimensional domains