Nanosensors for the detection of hydrogen peroxide