Optimal Charging And Converter Design For Vanadium Redox Flow Batteries