A new non-ideal second order thermal model with additional loss effects for simulating beta Stirling engines