R&D and foreign direct investment with asymmetries in knowledge transmission