Dual-channel sensing strategy based on gold nanoparticles cooperating with carbon dots and hairpin structure for assaying RNA and DNA.