3D Magnetic Analysis of the CMS Magnet