Longitudinal mode control in GaAs lasers using a three-mirror active-passive cavity