refactor: generalize Module.Finite.of_surjective to arbitrary ring homomorphisms (#42054)
Module.Finite.of_surjective