Electricity-price volatility, rising interest rates and equipment prices are driving the cost of green energy higher.