Effect of absorbed hydrogen on magnetic behavior of Th7Co3 and Th7Ni3