Firearm legislation, gun violence, and mortality in children and young adults: a retrospective cohort study