Shape memory alloy/glass composite seal for solid oxide electrolyzer and fuel cells