Optimal Currency Areas with Labor Market Frictions