Microgrids: cost-effective, sustainable and resilient