change in internal energy and the work done in a closed cycle process