How can glycolysis and the citric acid cycle contribute to anabolic pathways?