In Situ Growth of Carbon for Nanoelectronics: From Nanotubes to Graphene