Ultrafast and low-power photonic crystal all-optical switching with resonant cavities