Photochemical stability of nonlinear optical chromophores in polymeric and crystalline materials.