Measurement of the cross section for inclusive isolated-photon production in pp collisions at sqrt(s) = 13 TeV using the ATLAS detector