Demand flexibility enabled by virtual energy storage to improve renewable energy penetration