Teasing apart the joint effect of demography and natural selection in the birth of a contact zone