Atomic-layer design and properties of Pr-doped HfO2 thin films