Algorithmic Control Improves Residential Building Energy and EV Management when PV Capacity is High but Battery Capacity is Low