Synthesis of TiO2 Materials Using Ionic Liquids and Its Applications for Sustainable Energy and Environment