Race to the White House: The rules of the US election explained