Machine learning techniques to understand the dynamics of terrorist events