Energy costs of protein and fatty acid synthesis