Solar UV index and UV dose determination with photochromic hackmanites: from the assessment of the fundamental properties to the device