All-wheel drive electric vehicle modeling and performance optimization