The Optimal Timing of Unemployment Benefits: Theory and Evidence from Sweden