The Efficient Design of Contracts To Purchase Cogenerated Powers