Efficiently maximising power generation from thermoelectric generators