Mitigating optical losses in crystalline silicon thin-film solar cells on glass