First Law Analysis of Unsteady Processes with Application to a Charging Process and a Reciprocating Compressor