Sorting Between and Within Industries: A Testable Model of Assortative Matching