A Principal-agent Approach To Capacity Remuneration Mechanisms