The marginal cost and pricing of electricity