Design of Kerr-effect sensitive microcavity in nonlinear photonic crystal slabs for all-optical switching