The Dynamics of Unemployment: Job Loss and Job Search