Electron energy loss in multilayered slabs. III: Anisotropic media