Extension of the Clausius inequality to quantum gases from a kinetic equation approach