The temperature dependence of the structure of amorphous carbon