Design of a 4 T Curved Demonstrator Magnet for a Superconducting Ion Gantry