Anisotropic critical-state model of type-II superconducting slabs