Self-consistent device simulation of a-Si p–i–n solar cells and energy resolution analyses of capture and emission processes