A Functional Legal Design for Reliable Electricity Supply: How Technology affects Law