Three-dimensional three-atom model for computer simulation of impact-collision ion scattering spectroscopy