Describe the biological needs for cells to be surrounded by a membrane that is selectively permeable for different materials.