Direct Amidation of Terminal Carboxylic Groups of Armchair and Zigzag Single-Walled Carbon Nanotubes: A Theoretical Study