Dislocations in AlGaN: Core Structure, Atom Segregation, and Optical Properties.