Switching the recognition preference of rhodamine B spirolactam by replacing one atom: design of rhodamine B thiohydrazide for recognition of Hg(II) in aqueous solution.