What were the main events leading to the collapse of feudalism in Europe?