Magnetic properties of La2Ni7 and its hydride