Reactivity of solids studied by in situ XAS and XRD