The Taliban and other jihadist militants have unleashed waves of suicide attacks in Afghanistan this year as foreign forces pull out after 13 years of war.