The gel route to transition metal oxides