Theoretical dipole moment function of the X1Σ+ state of HI