Sub-GeV dark matter detection with electron recoils in carbon nanotubes