A monitoring and management system for energy storage integration in smart grids