NEST: A Comprehensive Model for Scintillation Yield in Liquid Xenon