System design and analysis methods for optimal electric vehicle thermal management