Formic, a Chicago company that rents robots to American factories, has raised $50M. Today its robots are built for specific tasks. The money will help it move to general-purpose machines that can take on more kinds of factory work.