Effects of ambient temperature and trip characteristics on the energy consumption of an electric vehicle