Stability of strain-gradient plastic materials