Model and simulation of the energy retrieved by thermoelectric generators in an underwater glider