Geometry Optimization of a Segmented Thermoelectric Generator Based on Multi-parameter and Nonlinear Optimization Method