What are the different types of thermodynamic systems (open, closed, isolated) and when are they used?