Analytical Modeling and Inverse Design of Centimeter-Scale Hard-Magnetic Soft Robots