Derivation of the core mass-halo mass relation of fermionic and bosonic dark matter halos from an effective thermodynamical model | Synapse