Mechanically interlocked 3D multi-material micromachines