The magnitude of lives shortened by gun violence in the US since the turn of the century has been more than twice as great among black Americans — particularly those up to the age of 20 — as it has been among whites, new research finds.