What were major wars in 18th century in Bosnia and Herezgovina and how did they impact on the land and territory of BiH?