Diffraction from stepped surfaces in thermal equilibrium