Thermal expansion and density of glassy PdNiP and PtNiP alloys