4d TFTs, Categorical bialgebras, and 2-Segal spaces