Factors influencing the psychological impact of prolonged unemployment and of re-employment