XPS measurements and structural aspects of silicate and phosphate glasses