Electricity market design: Pricing, contracting, and cost allocation