Substrate-emitting semiconductor laser with a trapezoidal active region