Supervisory control of PV-battery systems by online tuned neural networks