Designing Competitive Electricity Markets door