School shootings, mass killings are 'contagious,' study finds