Electrical properties of dislocations within the nitride based semiconductors gallium nitride and indium nitride