Performance and optimization criteria for forward and reverse quantum Stirling cycles