Coexistence of polar displacements and conduction in doped ferroelectrics: An ab initio comparative study