Stability and instability of Ricci solitons