Modeling of Inverter-Based Resources for Hardware in the Loop Testing of Protection and Control Schemes