A model for acoustic emission generation in composite materials