Critical surface scattering of x-rays at grazing angles