factors that affect resting potential