MAST magnetic diagnostics