Frequency chirping for resonance-enhanced electron energy during laser acceleration