An analysis of diffraction from intrinsic structure in general grain boundaries