Move generic code from charger-3ph to charger-common
As a result the computation of averaged currents and voltages is done on all batteries, even missing ones.
Some local variables for the common code are necessarily placed in header file.
Set the Panel switch in the charger code and pass batteryUnderCharge from monitor.