XANES study of 3d oxides: Dependence on crystal structure