Dopant-matrix interaction in solid oxide electrolytes and electrodes