How Massachusetts is trying to turn EVs into grid batteries