Measurement of differential cross sections for inclusive isolated-photon and photon+jets production in proton-proton collisions at sqrt(s) = 13 TeV