A novel structure of multipole field magnets and their applications in uniformizing beam spot at target