Universal magnetic inversion scheme to design novel superconducting magnet systems