Recognizable languages and finite semilattices of groups