Which of the following processes are thermodynamically reversible?