Determination of radial electric field from Pfirsch–Schlüter flows in the HSX stellarator