Hydrides and valence changes in some compounds of YbNi, YbPd and related systems