What rivalries developed during this period, and what was the relationship between these rivalries and the religious wars of the era?