pH-mediated reversible fluorescence nanoswitch based on inner filter effect induced fluorescence quenching for selective and visual detection of 4-nitrophenol.