Measurement of differential cross sections for Higgs boson production in the diphoton decay channel in pp collisions at sqrt(s) = 8 TeV