TiO2 nanocrystal particles and electrodes. The combined role of pH and metal substrate