A time-temperature integrator based on fluorescent and polymorphic compounds