Ferromagnetic properties of cyclically deformed Fe3Ge and Ni3Ge