Egg-shell formation in trematodes and cestodes