Explain at least two different factors (military, cultural, political, economic, or social) that led to the decline of the Ming and Qing Dynasties.