Algebraic Coupled-Channels Formalism for Heavy Ions near the Coulomb Barrier