General principles to high-throughput constructing two-dimensional carbon allotropes