A Security-Constrained Bid-Clearing System for the New Zealand Wholesale Electricity Market