Critical working frequency of reciprocating heat-transfer devices in axially reciprocating mechanisms