A quantum inspired machine learning agent for optimal unified control of battery energy storage systems in renewable microgrids | Synapse