CMOS micromachined structures using transistors in the subthreshold region for thermal sensing