Functionalization of vertically aligned carbon nanotubes