Nonlinear photon localization for high-intensity laser protection systems for photodetectors and eyes.