A Model for Optimizing Energy Investments and Policy Under Uncertainty with Application to Saudi Arabia