A model for the estimation of the residual driving range of battery electric vehicles including battery ageing, thermal effects and auxiliaries