Structural stability of rubble-pile asteroids