The role of front and back electrodes in parasitic absorption in thin-film solar cells