Essays on the Economics of Electricity