Smart charging technology for electric vehicles