Calculation of the solubility of liquid solutes in glassy polymers