Hot luminescence and relaxation processes in resonant secondary emission of solid matter