Radiative cooling of hot Cn− and CnH− molecules