Resonance-enhanced three-photon luminesce via lead halide perovskite metasurfaces for optical encoding