Grain boundary corrosion of highly porous ceramic TiO2 foams is reduced by annealing and quenching