Colorimetric detection of hydrogen peroxide and lactate based on the etching of the carbon based Au-Ag bimetallic nanocomposite synthesized by carbon dots as the reductant and stabilizer.