Photon recycling in heterojunction thin-film solar cells