Effect of structural disorder on the electronic and phononic properties of Hf doped BaTiO3