Rational design of photochromic analogs of tricyclic drugs