Influence of Y substitutions on the magnetism of Gd5Ge4