Ultrathin Flexible Inorganic Device for Long-Term Monitoring of Light and Temperature