Measurement of the production cross section of three isolated photons in pp collisions at sqrt(s) = 8 TeV using the ATLAS detector