Beyond the effective index method: improved accuracy for 2D simulations of photonic crystal waveguides