Structural and electronic properties of NM-doped ceria (NM = Pt, Rh): a first-principles study