Analytical Magnetic Model Towards Compact Design of Magnetically-Driven Capsule Robots