Smart photovoltaics based on dye-sensitized solar cells using photochromic spiropyran derivatives as photosensitizers