following the dictates of an economic philosophy known as mercantilism, aimed at protecting its own manufacturers, spain did what?