Manipulating bond lengths adiabatically with light