Modeling the X-ray absorption of Neodymium ions in cuprate superconductors