Classical overbarrier model to compute charge exchange and ionization between ions and one-optical-electron atoms