A Nash-bargaining model for trading of electricity between aggregations of peers