Suppression of Mg propagation into subsequent layers grown by MOCVD