Steady-state entanglement and coherence of two coupled qubits in equilibrium and nonequilibrium environments