Text this: Phase transition and bandgap modulation in TiO2 nanostructures for enhanced visible-light activity and environmental applications