Functional Molecular System of Bis(pyrazolyl)pyridine Derivatives: Photophysics, Spectroscopy, Computation, and Ion Sensing