At its height in the 16th to 18th centuries, Spain ruled one of the largest empires in world history, spanning five continents