Robot with AI brain learns to evolve synthetic protocells