Social and structural aspects of language contact and change