What are the key advantages of implementing a microgrid system? Explain the concept of islanding in a microgrid. How does a microgrid enhance energy resilience?