Vanadium speciation by XANES spectroscopy: a three-dimensional approach.