Photofunctional molecular crystals