Machine learning-optimized Tamm emitter for high-performance thermophotovoltaic system with detailed balance analysis