Scientists develop self-assembling robot