Test cycle simulation of an electric car with regenerative braking