A stochastic approach for quantifying immigrant integration: the Spanish test case