Approximate solutions of Volterra integral equations by an interpolation method based on ramp functions