Reducing The Levelized Cost Of Energy Of Residential Pv Inverters Through Dynamic Hardware Allocation