Parametric and design analysis on thermoelectric generators