Corrosion of ceramic materials