Shape-locking in architected materials through 3D printed magnetically activated joints