Topological 1-Segal and 2-Segal Spaces