Structural investigation of lanthanoid coordination: A combined XANES and molecular dynamics study