Magnetic properties of the YCo3–H system