Surface emitting laser diode with bent waveguide