Taxation of intellectual property under domestic law, EU law and tax treaties