Extended Infrared Line Emission Excited by Starburst and Seyfert Activity in NGC 3256 and NGC 4945