A Physical and Computational Approach to the Function of Fluorescent Polymers and Small Molecules as Materials for Organic Light-Emitting Devices