On-the-Job Search and the Cyclical Dynamics of the Labor Market