The function of the cell membrane is to