Graft-induced midgap states in functionalized carbon nanotubes.