155Gd Mössbauer effect and magnetic properties in GdM compounds and their ternary hydrides (M = Rh, Pd, Cu, Ag and Au)