The structure of crossed products by endomorphisms