q-Gaussians in the porous-medium equation: stability and time evolution