Mechanism of topology simplification by type II DNA topoisomerases