Amenities Versus Labor Market Opportunities: Choosing the Optimal Distance to Move