Electronic, magnetic, and optical properties of Mn-doped GaSb: A first-principles study