Measurement of the ratio of cross sections for inclusive isolated-photon production in pp collisions at \( \sqrt{s} \) = 13 and 8 TeV with the ATLAS detector