Comparative Evaluation of Substituent Effect on the Photochromic Properties of Spiropyrans and Spirooxazines.