Capital income and profit taxation with foreign ownership of firms