Magnetic Properties of Compositionally-Modulated Thin Foils and Their Hydrides