A wavelength-induced frequency filtering method for fluorescent nanosensors in vivo