Electron energy loss in multilayered slabs. II. Parallel incidence