Structural analysis of group V, VI, VII metal compounds by XAFS and DFT calculation