Trajectory focusing in surface scattering and the analysis of surface structure