Atomistic modelling of CVD synthesis of carbon nanotubes and graphene