Another civil war ensued after the death of Karim Khan in 1779, out of which Aqa Mohammad Khan emerged, founding the Qajar Dynasty in 1794. The Qajars defeated the Russians at what battle to take over Tblisi?