Resolving structural modifications of colloidal glasses by combining x-ray scattering and rheology