Control of aggregate electric water heaters for load shifting and balancing intermittent renewable energy generation in a smart grid environment