Grazing small-angle scattering of X-rays for the study of thin surface layers