Optimization of power management in PV-based smart grids using grid-support and grid-forming inverters | Synapse