Materials used as batteries