Mechanisms of Assortative Mating in Speciation with Gene Flow: Connecting Theory and Empirical Research