Application of direct potential fitting to line position data for the X1Σg+ and A1Σu+ states of Li2