Differential cross-section measurements of the production of a top-antitop quark pair in association with a Z boson with the ATLAS detector