X-Ray Lithography for Magnetic Patterns and their Characterization