Extensions and generalizations of an envelope-function approach for the electrodynamics of nonlinear periodic structures.