Tailoring of motional states in double-well potentials by time-dependent processes