open system in thermodynamics