Ensemble quasar spectral variability from the XMM-Newton Serendipitous Source Catalogue