Influence of Solvent Quality and Thermal Fluctuations on Polymer-Mediated Depletion Interactions