Scientists develop micro-robots that can flow like a fluid or collectively assemble into solid shapes