How TV networks decided to call the US election