ATP binding controls distinct structural transitions of Escherichia coli DNA gyrase in complex with DNA