Waveguide-Based Photonic Sensors: From Devices to Robust Systems