Spain tries new approach to counter illegal immigration