Determination of the surface structure autocorrelation function for rough deposits of magnesium.