PaperAveraged Lagrangian method applied to resonant nonlinear optics. The self-steepening of light pulses