A photochromic material-based platform for high-precision UV light detection and erasable optical information storage