How Energy Storage Reduces Renewable Energy Curtailment