Cantilever sensors and transducers