Linear entropy and collapse–revival phenomenon for a general formalism N-type four-level atom interacting with a single-mode field