Tolerance Analysis of NMR Magnets