Machine learning guided optimization of an artificial carbon dioxide fixation cycle and its extension towards value-added compounds