Synthesis of ceramic membranes