Decoding the metabolic response of Escherichia coli for sensing trace heavy metals in water