Measurement of the differential cross section of Z boson production in association with jets at the LHC