construction of grain boundaries