From antiferromagnetic ordering to spin fluctuation behavior induced by hydrogenation of ternary compounds CeCoSi and CeCoGe