Production of ceramic materials or ceramic elements