Recent developments in TiO2 as n- and p-type transparent semiconductors: synthesis, modification, properties, and energy-related applications