Jobs versus amenities in the analysis of metropolitan migration