A general corrosion route to nanostructured metal oxides.