Evolution of complex life cycles in trophically transmitted helminths. I. Host incorporation and trophic ascent