Stabilization of class-B broad-area laser emission by external optical injection