Diode-based CMOS MEMS thermal flow sensors