what are the main function of each of the biomolecules carbohydrates protein lipids and nucleic acids