IoT-based smart energy management for solar vanadium redox flow battery powered switchable building glazing satisfying the HVAC system of EV charging stations