W and Z boson production at CMS in pp collisions at sqrt(s)=7 TeV