Modeling solvent dynamics in polymers with solvent-filled cavities