X-ray absorption near-edge structure study of EuRh3B2 and EuFe4Al8