What were the major factors that contributed to the decline of the feudal system in medieval Europe?