The electronic origin of the visible-light absorption properties of C-, N- and S-doped TiO2 nanomaterials.