Energy level alignment at titanium oxide-dye interfaces: Implications for electron injection and light harvesting