Pakistani air force jets kill 31 militants in northwest