Interface structure and non-stoichiometry in HfO2 dielectrics