Transfer of charges through friction