James Foley was among the four who were waterboarded several times by Islamic State militants