Characterization of polycrystalline thin-film heterojunctions