Xanes and 51V Nmr study of vanadium-oxygen compounds