Determination of the ground-state potential energy curve of LiH6 up to dissociation