Role of free energy change on medium effects in intramolecular electron transfer