MEMS-based microsensors using piezoelectric thin films as sensors and actuators