The New York Post has provoked outrage in the US by publishing a graphic front page image of American journalist James Foley about to be executed.