Hydrogen absorption and magnetic properties of intermetallic compounds based on 3d elements