How Afghanistan became a failed state