Energy transfer can be considered for the special case of systems which are closed to transfers of matter. The portion of energy which does not do work during the transfer is called what