The simulation of Stirling engines by means of a lambda method