Addressing the photocatalytic mechanism through TiO2 surface engineering