Ion-ion collision-induced evaporative cooling of atomic and molecular ions by autoresonance in an electrostatic ion beam trap