The work done in turning a magnetic dipole of magnetic moment \(M\) in a magnetic field \(B\) by an angle \(90^\circ\) from the meridian is \(n\) times the corresponding work done in turning it through an angle of \(60^\circ\) in the same field and from the same initial condition. Find the value of \(n\).