Influence of cubic nonlinearity on laser radiation transmission in a photonic crystal with spatially modified media properties