Guided-wave optical signal processing