These smart microrobots can adapt to their surroundings