Solid oxide fuel and electrolysis cells