Function of smooth and rough endoplasmic reticulum