How Afghanistan became Muslim