Multi-parameter optimization and uncertainty analysis of multi-stage thermoelectric generator with temperature-dependent materials