What do the external ectoderm and an internal endoderm layers develop into