Effective Potential Description of the Quantum Ideal Gases