Bistable optical switching and logic elements in photochromic fulgides with single-wavelength illumination