Service Quality Regulation in Electricity Distribution and Retail