Effects of meso-M(PPh3)2Cl (M = Pd, Ni) substituents on the linear and third-order nonlinear optical properties of chalcogenopyrylium-terminated heptamethines in solution and solid states