Mitigating financial risk of corporate power purchase agreements via portfolio optimization