Innovating approaches to the generation of intense magnetic fields : design and optimization of a 4 Tesla permanent magnet flux source