Resolution of ambiguities in the optical-model potential for 16O24Mg from elastic scattering data near the Coulomb barrier