Shaped electric fields for fast optimal manipulation of electron spin and position in a double quantum dot