Simulation of Microgrid Protection with Synchronous and Inverter-based Generation