Measurement of the Y1S, Y2S and Y3S polarizations in pp collisions at sqrt(s) = 7 TeV