Atomic and electronic structure of the ferroelectric BaTiO3/Ge(001) interface