Optimum battery capacity for electric vehicles with particular focus on battery degradation