Investigation of phase transition of Ge2Sb2Te5 and N-incorporated Ge2Sb2Te5 films using x-ray absorption spectroscopy