Spanish police say they have seized 827,000 ecstasy tablets as part of the "largest seizure of synthetic drugs" in the country.