A layer-by-layer deposition mechanism for producing a pyrolytic carbon coating on carbon nanotubes