Controlled formation of highly ordered cubic and hexagonal mesoporous nanocrystalline yttria-zirconia and ceria-zirconia thin films exhibiting high thermal stability.