Mechanism of lithium electrosorption by activated carbons