The giant dipole resonance as a quantitative constraint on the symmetry energy