ENERGY MANAGEMENT SYSTEM SMART EMS FOR BATTERY ENERGY STORAGE SYSTEMS