Analytical Magnetic Model towards Compact Design of Magnetically-driven Capsule Robot