A Tutorial on Hawkes Processes for Events in Social Media