Identification of dislocations and their influence on the recombination of charge carriers in gallium nitride