The role of of oxygen defects in superconductivity of Nd2−xCexCuO4−y studied by x-ray absorption fine structure