A new method for spatial mode shifting of a stabilized optical cavity for the generation of dual-color X-rays