Excitation-induced frequency shift probed by stimulated photon echoes