Multiple scattering calculations on ions passing through thin amorphous foils