Deducing physical properties of weakly bound states from low-energy scattering data. Application to 16O and 12C+α