Generalization of the Lorenz-Haken model to atomic systems with different relaxation rates for the two laser levels