With military victory elusive, W.African nations quietly back talks with Islamists