Pressurized solid phosphate electrolyzer for medium temperature water splitting