NC attacks Mehbooba Mufti over remarks linking terror with religion