Multiscale modeling for reversible solid oxide cell operation