Measurements of the differential cross sections of the production of Z plus jets and γ plus jets and of Z boson emission collinear with a jet in pp collisions at √s=13 TeV