Grid integration of electric vehicles in open electricity markets