pH-Induced effects on the photophysics of dipyridyl ketones