Thermopower of single-channel disordered and chaotic conductors