Grid integration of solar power