Text this: Precise and diffraction-limited waveguide-to-free-space focusing gratings