Magnetic bubble nucleation and dynamics driven by spin-transfer torque