Thermodynamics of diamond film deposition at low pressure from chlorinated precursors