Grain boundaries in semiconductors