Ceramic membranes for separation and reactions