Microgrid and Grid Synchronization: A Critical Analysis of Challenges and Opportunities