Transmission electron microscopy study of carbon nanophases produced by ion beam implantation