Ensemble synchronization in the reassembly of Hydra’s nervous system