The establishment of intracellular symbiosis in an ancestor of cockroaches and termites