Increase of pinning by hydrogenation in 1-2-3 and 2-1-4 types superconductors