Text this: The balance between integration and segregation drives network dynamics maximizing multistability and metastability