Determination of pKa Values of 4-Phosphonato-2,2":6",2""-Terpyridine and Its Ruthenium(II)-Based Photosensitizer by NMR, Potentiometric, and Spectrophotometric Methods