Solid state and solution fine tuning of the linear and nonlinear optical properties of (2-pyrene-1-yl-vinyl)pyridine by protonation–deprotonation reactions