Atomic and molecular gas in the Milky Way. I. Structure decomposition | Synapse