Nonlinear optical properties of one-dimensional photonic crystals