Optical investigation of the vertical diffusion of manganese in planar structures based on CdTe and Cd1 − xMgxTe with ultrathin MnTe layers