Single and double photoionization of lithium