Hydrogen absorption and its effect on structure and magnetic behavior of GdNi2