Notre Dame gets scare from Duke, but Irish pull away late, 27-13