Dynamical evolution of CO2 and H2O on garnet electrolyte elucidated by ambient pressure X-ray spectroscopies