Thin film deposition of tetrahedral amorphous carbon: a molecular dynamics study