Ghani wins Afghan election on preliminary results