Utilization of XANES to understand local electronic and geometric structure of ALD functional thin films