Basic Tools for Modeling Stellar and Planetary Atmospheres