Theory of slow light enhanced four-wave mixing in photonic crystal waveguides