A Model of Multinational Income Shifting and an Application to Tax Planning with E-Commerce