Effect of the lattice mismatch on threading dislocations in heteroepitaxial GaN layers revealed by X-ray diffraction