Synthesis, structural aspects and nonlinear optical properties of novel phthalimide derivatives: theoretical and experimental approach