Quantum master equations and steady states for the ultrastrong-coupling limit and the strong-decoherence limit