Bonding properties and their relation to residual stress and refractive index of amorphous Ta(N,O) films investigated by x-ray absorption spectroscopy