Potensiometre, variabel motstand