Foreign Tax Credits: Planning and Pitfalls