Single and double photoionization of Li2