Recombination luminescence in liquid argon and in liquid xenon