pH-sensitive Ru(II) and Os(II) bis(terpyridine) complexes: a photophysical investigation