A novel open-source simulator of electric vehicles in a demand-side management scenario