Low-lying electronic states of Li2+ and Li2−