Phase-space interference in extensive and nonextensive quantum heat engines.