Modelling and optimisation of ionisation gauges for magnetic nuclear devices