Surjective endomorphisms of finitely generated modules