Structure of grain boundaries