Mechanochemical coupling and structural dynamics in DNA gyrase