Finite-temperature magnetism of Fex Pd1-x and Cox Pt1-x alloys