Evaluation of the interplanetary magnetic field strength using the cosmic-ray shadow of the Sun