Structural stability of a nonlinear-optical material fabricated by Langmuir–Blodgett deposition