Local Structure of Pr, Nd, and Sm Complex Oxides and Their X-ray Absorption Near Edge Structure Spectra