All-Optical Switching in 2-D Photonic Crystal Cavities with Defect Resonances