Atomistic simulation of energy and temperature effects in the deposition and implantation of amorphous carbon thin films