Use of automated optimisation techniques in the design of the magnetic system for a caesium frequency standard