Real-time monitoring of the impact of cascaded wavelength-selective switches in digital coherent receivers