Magnetic relaxation of hydrogen and deuterium in f.c.c. binary alloys