The study of grain boundaries in polycrystalline thin-film solar cells