Time-resolved in situ investigations of reactive sputtering processes by grazing incidence X-ray absorption spectroscopy