Role of dislocations in nitride laser diodes with different indium content