Epithelial cell plasticity drives endoderm formation during gastrulation