Microfabrication of waveguide-based devices for quantum optics