Structural characterization of a photoinduced molecular switch.