Optimal kilometre tax for electric vehicles