Luminescence of layered compounds excited by high-intensity two-photon pumping