Effect of detuning on the phonon induced dephasing of optically driven InGaAs/GaAs quantum dots