Correlation between spectral state and quasi-periodic oscillation parameters in GX 5-1