Measurement of prompt J/psi pair production in pp collisions at sqrt(s) = 7 TeV