d-Electrons in crystalline and amorphous V2O5 and MoO3 compounds