Grazing incidence energy loss of an atomic beam in thermal evanescent field of polaritons near a smooth dielectric/semiconductor surface