Electronic and Optical Properties of Low-Dimensional TiO2: From Minority Surfaces to Nanocomposites