‘MacGyver’ robot builds tools with what’s on hand