Protection Of Grid-Tied And Islanded Systems With High Penetration Of Inverter-Based Resources