Text this: Assessment of a diaphragm thermoacoustic Stirling engine using the energy standpoint and genetic algorithm