Shape-changing magnetic assemblies as high-sensitivity NMR-readable nanoprobes