Photochromic fulgides. Spectroscopy and mechanism of photoreactions