Nanostructuring Gd5 (Si, Ge)4 multifunctional materials