Adsorption, Electronic, and Optical Properties of TiO2–Pyridine Complexes: General Principles for Interfacial Charge-Transfer Transitions