Quantum phase transitions triggered by a four-level atomic system in dissipative environments