Internal stabilization of Maxwell's equations in heterogeneous media