The ins and outs of unemployment: An analysis conditional on technology shocks