the net work done by the gas is