Electric Vehicle Integration For Grid Services Using Ai, Optimization, And Blockchain