Understanding and removing surface states limiting charge transport in TiO2 nanowire arrays for enhanced optoelectronic device performance† †Electronic supplementary information (ESI) available. See DOI: 10.1039/c5sc04076k