Smart charging infrastructure for electric vehicles