Describe the three factors that influence the distribution of Na+ and K+ ions across the neural membrane.