Time–Temperature Integrating Optical Sensors Based on Gradient Colloidal Crystals