DESIGN OF AN INTELLIGENT BATTERY MANAGEMENT SYSTEM BMS