what is the main function of the cell wall