Market imperfections, unemployment equilibria and nominal rigidities