what two substances control the movement of materials into and out of the cell