Nonresident partners and shareholders of partnerships and S corporations