Two-dimensional electrochemical model for mixed conductors: a study of ceria