An optimal trading mechanism to address network resiliency in a distribution electricity market with high renewable penetration