A team of journalists relentlessly tracked the shooter’s digital and paper trail. But AI provided deeper insight into her thoughts before the shooting.