Labor market dynamics and institutions: an evolutionary approach