Micromachined thin-film sensors for SOI-CMOS co-integration