A diode-based bolometer implemented on micromachined CMOS technology for terahertz radiation detection