Mineral wealth and economic development: foreign direct investment in Spain, 1851-1913