Thiophene-Based Molecular Sensors towards the Selective Detection of Mercury(II) and Other Metals