Structural Investigation of Lanthanoid Coordination: a Combined XANES and Molecular Dynamics Study