Thermoelectric effect in a superconducting torus