Theoretical analysis of performance of variable cross-section thermoelectric generators: Effects of shape factor and thermal boundary conditions