Multiphase structural models and hyperpolarizability calculations explain second-order nonlinear optical properties of stilbazolium ions