Doping and interface effects on the ferroelectric properties of epitaxial HfO2-based thin films