On the structure of grain-boundary dislocations