what year did nick foles play for the eagles