XAFS study of the local structure around Er3+ ion in thin Er-doped HfO2 thin films for advanced nanoelectronic applications