Electromagnetic scattering from anisotropic materials, Part I: General Theory