Thermoelectric effects in structures of the quantum Hall effect and the quantum spin Hall