Skill loss, ranking of job applicants, and the dynamics of unemployment