Investing and Pricing with Supply Uncertainty in Electricity Market: A General View Combining Wholesale and Retail Market