The structure and properties of dislocations in GaN