Why knowledge exchange occurs? The role of social networks, homophily, and proximity