Modal theory of slow light enhanced third-order nonlinear effects in photonic crystal waveguides.