Measurement of the inclusive isolated-photon cross section in pp collisions at sqrt(s) = 13 TeV using 36 fb−1 of ATLAS data