A war occurring from 1603 to 1618 resulted in what treaty?