Regulation of lipid metabolism in response to environmental stress in plants and algae