Generation of H-Kr-C5N and H-Xe-C5N molecules