ems energy storage management system patent