Ion beam crystallography of solid and molten surfaces