Double-heterojunction laser diodes with multiply segmented contacts