Intelligent control of battery energy storage for microgrid energy management using ANN | Synapse