Potential energy curves and adiabatic corrections of weakly bound states: Application to the LiH B 1Π state