Hydrothermal synthesis of mesostructured nanocrystalline TiO2 in an ionic liquid–water mixture and its photocatalytic performance