Expanding endomorphisms of flat manifolds