An optical sensor for mercury ion based on the fluorescence quenching of tetra(p-dimethylaminophenyl)porphyrin