Field generation and shaping in EPR imaging