On surjective endomorphisms of Calabi-Yau varieties