Residual stresses in planar solid oxide fuel cells