Effect of dissolved hydrogen on the electrical and magnetic behavior of PrCo2 and NdCo2