Electronic relaxation processes in the KLL′ auger spectra of the free magnesium atom, solid magnesium and MgO