Functional planar thin film optical waveguide lasers