Distance dependence of triplet energy transfer in water and organic solvents: A QM/MD study