On the sol–gel preparation of different tungstates and molybdates