Photoinduced Forward and Backward Pedalo-Type Motion of a Molecular Switch