Modeling and design of an electric all-terrain vehicle