One-step solid-state synthesis of carbon nanotubes with surface functionality and their application in water treatment