Measurement of J/psi and Psi(2S) prompt double-differential cross sections in pp collisions at sqrt(s) = 7 TeV