How electrolyte shielding influences the electrical potential in transmembrane ion channels