Systems for generation, homogenisation or stabilisation of the main or gradient magnetic field