How did the defeat of the spanish armada affect the course of history?