Calculations of intrinsic threshold for TE and TM mode in GaAs laser diodes