Optimizing the integration of renewable energy in the United States