Text this: Tuning the nature of defect states in black TiO2 nanostructures