Taxing capital and labor when both factors are imperfectly mobile internationally