A residential virtual power plant of electric vehicles and batteries for a resilient grid during normal and extreme weather | Synapse