Rational Design of Photochromic Analogues of Tricyclic Drugs