Realization of multifunctional shape-memory ferromagnets in all-d-metal Heusler phases