Barack Obama is projected to have been re-elected president of the United States