A New Cooperative Framework for a Fair and Cost-Optimal Allocation of Resources Within a Low Voltage Electricity Community