What is the primary function of the sodium-potassium pump in animal cells?