Optimal Solar Pv, Battery Storage, And Smart-Inverter Allocation In Zero-Net-Energy Microgrids Considering The Existing Power System Infrastructure