Certified Coil Geometry Learning for Short-Range Magnetic Actuation and Spacecraft Docking Application