In-plane surface scattering in two and three dimensions. Rainbow structure, energy spectra and the influence of surface temperature