Afghanistan, Early 19th Century