Magnetic diagnostics for future tokamaks