Exploring Microgrids: Understanding Their Role in Modern Energy Infrastructure