Infrared Energy Distributions and the Nature of Young Stellar Objects