Understanding terahertz optical properties of amorphous carbon thin films