Measurement of differential cross sections for the production of a pair of isolated photons in pp collisions at sqrt(s) = 7 TeV