IoT-Based Battery Management System for Electric Vehicles