Entanglement in a system of a three-level atom interacting with a single-mode field in the presence of arbitrary forms of the nonlinearity and of the atomic initial state