How were the Han dynasty and the Qin dynasty different?