Optical signal quality monitoring using fibre-Bragg-grating-based correlators in optical packet-switched networks