Theory of Stellar Atmospheres