Optical nonlinear response of a single nonlinear dielectric layer sandwiched between two linear dielectric structures