Two-atom model for the calculation of surface blocking in medium and high energy ion scattering