Electron capture by He2+and He+ions in lithium vapour