Method for sizing and selecting batteries for the energy storage system of an electric vehicle