Grain boundary assisted photocurrent collection in thin film solar cells