Theoretical study of the litium dimer and its anion