Spin-wave dynamics excited by spin-polarized currents in magnetic nanostructures