Effective refractive index analysis of optical Kerr nonlinearity in photonic bandgap structures