Function of cell wall in prokaryotes