Injective endomorphisms of varieties and schemes