Shifts in coral-assemblage composition do not ensure persistence of reef functionality