A software tool for the design of the current limit avoidance system at the JET tokamak