Characterization of metallic species on porous materials by in situ XAS